package com.lanou.utp.client;

import com.lanou.utp.entity.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author MaQingYun
 */
@FeignClient("basicdata-module")
public interface BasicDataClient {

    @GetMapping("/org/{level}/{id}/leaders")
    List<Teacher> findByMajorId(@PathVariable Integer level,@PathVariable Long id);


}
